﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp" %>
<form action="${ctx}/akzregion/save" method="post" style="margin: 0px;">
			
	<input type="hidden" name="region.id" value="${region.id}">
	
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">地区编码：</td>
				<td><input type="text" name="region.number" size="15" value="${region.number}"  ${empty region && region == null ? ' dataType="Require" msg=""' : 'readonly="readonly"' }/></td>
				
				<td style="text-align: right; padding-right: 3px; width: 20%;">地区名称：</td>
				<td ><input type="text" name="region.name" size="15" value="${region.name }" dataType="Require" msg=""/></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">上级地区：</td>
				<td>
					<select name="region.parent.id">
						<option>请选择</option>
						<c:forEach var="parent" items="${parentRegions}" varStatus="status">
							<c:if test="${!empty region.parent && parent.id==region.parent.id}">
								<option selected="selected" value="${parent.id}"  >${parent.name }</option>
							</c:if>
							
							<c:if test="${empty region.parent || parent.id !=region.parent.id}">
								<option value="${parent.id}"  >${parent.name }</option>
							</c:if>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">备&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
				<td colspan="3"><input type="text" name="region.description" size="50" value="${region.description }"/></td>
			</tr>
		</tbody>
	</table>
			
	<div class="window_footer"><input type="submit" value="确定"></div>
</form>

<%@ include file="/include/script.jsp" %>